package ModelLayer;

public class Product
{
    //instance varbiables
    private String name;
    private String id;
    private double price;
    private String barCode;
    private String dateAdded;
    private String location;
    private Discount discount;
    private String type;
    
    /**
     * Empty constructor for testing purposes
     */
    
    public Product()
    {
        name = "";
        id = "";
        price = 0.0;
        barCode = "";
        dateAdded = "";
        location = "";
        type = "";
        discount = new Discount();
    }
    
    /**
     * Constructor for object of class Order
     */
    
    public Product(String _name, String _id, double _price, String _barCode, String _dateAdded ,String _location, String _type ,Discount _discount)
    {
       name = _name;
       id = _id;
       price = _price;
       barCode = _barCode;
       dateAdded = _dateAdded;
       location = _location;
       type = _type;
       discount = _discount;
       
    }

    /**
     * Accessor and Mutator methods
     */
    
    public void setName(String _name)
    {
        name = _name;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setId(String _id)
    {
        id = _id;
    }
    
    public String getId()
    {
        return id;
    }
    
    public void setPrice(double _price)
    {
        price = _price;
    }
    
    public double getPrice()
    {
        return price;
    }
    
    public void setBarCode(String _barCode)
    {
        barCode = _barCode;
    }
    
    public String getBarCode()
    {
        return barCode;
    }
    
    public void setDateAdded(String _dateAdded)
    {
        dateAdded = _dateAdded;
    }
    
    public String getDateAdded()
    {
        return dateAdded;
    }
    
    public void setLocation(String _location)
    {
        location = _location;
    }
    
    public String getLocation()
    {
        return location;
    }
    
    public void setType(String _type)
    {
    	type = _type;
    }
    
    public String getType()
    {
    	return type;
    }
    
    public void setDiscount(Discount _discount)
    {
        discount = _discount;
    }
    
    public Discount getDiscount()
    {
        return discount;
    }
}
